<html>
<head><meta charset="utf-8"><title>Dogfooding · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html">Dogfooding</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="226116108"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Dogfooding/near/226116108" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> boolean_coercion <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html#226116108">(Feb 12 2021 at 09:46)</a>:</h4>
<p>Hi, could someone explain what the term "dogfooding" means in the context of clippy? I've seen it thrown around, from what I gather it performs some sort of test?</p>
<p>Also, at the top of tests/dogfood.rs it's mentioned that this can't be run on windows - why is that?</p>



<a name="226116449"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Dogfooding/near/226116449" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html#226116449">(Feb 12 2021 at 09:49)</a>:</h4>
<p>It comes from <a href="https://en.wikipedia.org/wiki/Eating_your_own_dog_food">Eating your own dog food</a>. This means that you use your own product (in this case Clippy) yourself. Dogfood testing means, that you test your product with your own product. So the dogfood test runs Clippy on Clippy.</p>
<p>I can't remember why running it on windows isn't possible though.</p>



<a name="226116588"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Dogfooding/near/226116588" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html#226116588">(Feb 12 2021 at 09:51)</a>:</h4>
<p>The Rust compiler itself is also "dogfooded" because it is used to compile the Rust compiler.</p>



<a name="226116720"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Dogfooding/near/226116720" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> boolean_coercion <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html#226116720">(Feb 12 2021 at 09:52)</a>:</h4>
<p>Thanks!</p>



<a name="226117529"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Dogfooding/near/226117529" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> xFrednet <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html#226117529">(Feb 12 2021 at 10:00)</a>:</h4>
<p>Dogfood also runs some internal lints which try to catch common Clippy specific mistakes. <span aria-label="upside down" class="emoji emoji-1f643" role="img" title="upside down">:upside_down:</span></p>



<a name="226118884"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Dogfooding/near/226118884" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nahua <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html#226118884">(Feb 12 2021 at 10:14)</a>:</h4>
<p>And sometimes when you implement a new lint, you run <code>cargo test</code> and will find out the new lint can already be applied to some existing code inside <code>clippy</code>!</p>



<a name="226149951"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Dogfooding/near/226149951" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html#226149951">(Feb 12 2021 at 15:21)</a>:</h4>
<p>I like to write commits with the message "Eat dogfood"</p>



<a name="226150146"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Dogfooding/near/226150146" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Dogfooding.html#226150146">(Feb 12 2021 at 15:22)</a>:</h4>
<p>I was also confused by the term at first and had to google it <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>